//go:generate go run github.com/google/wire/cmd/wire
//go:build wireinject
// +build wireinject

package server

import (
	"gin_gorm/web/conf"
	"gin_gorm/web/controllers"
	"gin_gorm/web/routers"
	"github.com/google/wire"
)

func wireApp(conf *conf.Config) (*AppProgram, func(), error) {
	panic(
		wire.Build(
			routers.ProviderSet,
			controllers.ProviderSet,
			newDB,
			newAppProgram,
			newServer,
		),
	)
}
